import 'dart:typed_data';

import 'package:image_gallery_saver/image_gallery_saver.dart';

/// 相册保存
class ImageSaverUtils {
  ImageSaverUtils._();

  static Future<dynamic> saveFile(String filePath) async {
    return await ImageGallerySaver.saveFile(filePath);
  }

  static Future<dynamic> saveImage(Uint8List imageBytes, {int quality = 80, String? name}) async {
    return await ImageGallerySaver.saveImage(imageBytes, quality: quality, name: name);
  }
}
